<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="tiles" uri="http://struts.apache.org/tags-tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="c_rt" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fmt_rt" uri="http://java.sun.com/jstl/fmt_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@ taglib prefix="x_rt" uri="http://java.sun.com/jstl/xml_rt"%>
<%@ taglib prefix="wr_fn" uri="http://njo.org/taglib/functions"%>
<h2><!-- img alt="" src="" --><a name="welcome">Login</a></h2>
<c:if test="${message!=null}">
  <div class="error-content">
    ${message}
  </div>
</c:if>
<form method="post" action="${pageContext.request.contextPath}/processor.login.tiles" name="loginForm">
  <input type="hidden" name="redirect" value="${notauthorized_requested_url}">
  <table border="0" cellspacing="5" background="images/LoginBackgroundTile.gif">
    <!-- username password prompts fields layout -->
    <tr>
    <td>
     <table width="100%" border="0" cellspacing="2" cellpadding="5">
     <tr>
      <th align="right">
        <label for="name">User Name</label>
      </th>
      <td align="left">
        <input type="text" name="name" size="16" id="name" value="${param.name}"/>
      </td>
    </tr>
    <tr>
      <th align="right">
        <label for="password">Password</label>
      </th>
      <td align="left">
        <input type="password" name="password" size="16" id="password"/>
      </td>
    </tr>
    <tr>
      <td width="50%" valign="top"> <div align="right"></div> </td>
      <td width="55%" valign="top">&nbsp;</td>
     </tr>
    <!-- login reset buttons layout -->
    <tr>
       <td width="50%" valign="top">
            <div align="right">
               <input type="submit" value='Login'>&nbsp;&nbsp;
            </div>
       </td>
       <td width="55%" valign="top">
          &nbsp;&nbsp;<input type="reset" value='Reset'>
       </td>
     </tr>
  </table>
  <p> &nbsp;
  </td>
  </tr>
 </table>
</form>
